package service.impl;


import dao.ProductDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import po.Product;
import service.ProductService;

import java.util.List;


@Service
@Transactional
public class ProductServiceImpl implements ProductService {
    // 注解注入 ProductDao
    @Autowired
    private ProductDao productDao;

    @Override
    public List<Product> allProduct() {
        return this.productDao.allProduct();
    }
}
